<template>
  <footer class="global-footer">
    <div class="footer-content">
      <p class="copyright">
        AI代码生成器项目 by
        <a href="https://www.baidu.com" target="_blank" rel="noopener noreferrer" class="author-link">
          jczhu
        </a>
      </p>
    </div>
  </footer>
</template>

<script setup lang="ts">
// 全局底部组件，用于显示版权信息
</script>

<style scoped>
.global-footer {
  background-color: #fafafa;
  border-top: 1px solid #e8e8e8;
  padding: 24px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.author-link {
  color: #1890ff;
  text-decoration: none;
  transition: color 0.3s;
}

.author-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 16px;
  }

  .copyright {
    font-size: 12px;
  }
}
</style>
